import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }

  @Get('data')
  data() {
    return [
      {
        name: '光光',
        sex: '男',
        birthday: new Date('1994-07-07').getTime(),
      },
      {
        name: '东东',
        sex: '男',
        birthday: new Date('1995-06-06').getTime(),
      },
      {
        name: '小红',
        sex: '女',
        birthday: new Date('1996-08-08').getTime(),
      },
    ];
  }
}
